package org.spring.springboot.dao;

import org.spring.springboot.domain.AdminUser;

import java.util.List;

/**
 * 描述：用户 DAO 接口类
 * <p>
 * Author: 赵新国
 * Date: 2017/10/12 16:39
 */
public interface UserDao {

    /**
     * 获取后台管理用户列表
     * @return
     */
    List<AdminUser> getUserList();

    AdminUser selectByPrimaryKey(Short userId);

    void updateByPrimaryKeySelective(AdminUser adminUser);

    void insertSelective(AdminUser adminUser);

    /**
     * 根据用户名查询用户
     * @param userName
     * @return
     */
    AdminUser findByUsername(String userName);

    /**
     * 逻辑删除用户
     * @param userId
     */
    void deleteByUserId(Short userId);

    AdminUser login(String userName, String password);
}
